home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / man-db.preinst < prev    next >
Text File  |  2008-07-11  |  775b  |  24 lines

  1. #!/bin/sh -e
  2.  
  3. # Clean up a cron job that the old man package apparently left around.
  4. if [ -e /etc/cron.daily/man ]; then
  5.     echo "  Removing /etc/cron.daily/man cron job from obsolete man package."
  6.     mv /etc/cron.daily/man /etc/cron.daily/man.moved-by-preinst
  7. fi
  8.  
  9. # Clean up a cron job left around by man-db from some time ago.
  10. if [ -e /etc/cron.weekly/catman ]; then
  11.     echo "  Removing obsolete /etc/cron.weekly/catman cron job."
  12.     mv /etc/cron.weekly/catman /etc/cron.weekly/catman.moved-by-preinst
  13. fi
  14.  
  15. # Old postrms removed catpages; we don't necessarily want to. Those postrms
  16. # didn't do anything else that's useful now, so remove them.
  17. if [ "$1" = upgrade ] && dpkg --compare-versions "$2" ge 2.3.16; then
  18.     rm -f /var/lib/dpkg/info/man-db.postrm
  19. fi
  20.  
  21.  
  22.  
  23. exit 0
  24.